package biz.ezcom.design.pattern.factory.method;

/**
 * 除法操作
 */
public class OperatorDiv implements Operator {

	@Override
	public double getResult(double numberA, double numberB) {
		if(numberB == 0){
			throw new RuntimeException("除数不能为０");
		}
		return numberA / numberB;
	}

}
